package com.example.aircraft.database;

public class User_Data {
    private String USER_NAME;
//    private String PASS_WORD;
    private int CREDITS;
    private int SHEILD;
    private int CLUSTER;
    private int HEMOPHAGIA;
    // String PASS_WORD
    public  User_Data(String USER_NAME, int CREDITS, int SHEILD, int CLUSTER, int HEMOPHAGIA){
        this.USER_NAME = USER_NAME;
//        this.PASS_WORD = PASS_WORD;
        this.CREDITS = CREDITS;
        this.SHEILD = SHEILD;
        this.CLUSTER = CLUSTER;
        this.HEMOPHAGIA = HEMOPHAGIA;
    }
    public String getUSER_NAME(){
        return this.USER_NAME;
    }

//    public String getPASS_WORD(){
//        return this.PASS_WORD;
//    }

    public int getCREDITS(){
        return this.CREDITS;
    }
    public int getSHEILD(){
        return this.SHEILD;
    }

    public int getCLUSTER() {
        return this.CLUSTER;
    }

    public int getHEMOPHAGIA() {
        return this.HEMOPHAGIA;
    }
    public void addToCrdits(int score){
        this.CREDITS+=score;
    }

    public void updateCREDITS(int i){
        this.CREDITS = this.CREDITS - i;
    }

    public void updateSHEILD(int i){
        if(i == 0){
            this.SHEILD =this.SHEILD - 1;
        }else{
            this.SHEILD =this.SHEILD + 1;
        }
    }

    public void updateHEMOPHAGIA(int i){
        if(i == 0){
            this.HEMOPHAGIA =this.HEMOPHAGIA - 1;
        }else{
            this.HEMOPHAGIA =this.HEMOPHAGIA + 1;
        }
    }

    public void updateCLUSTER(int i){
        if(i == 0){
            this.CLUSTER =this.CLUSTER - 1;
        }else{
            this.CLUSTER =this.CLUSTER + 1;
        }
    }
}
